/*
 * gpio_i2c_sht20.h
 *
 *  Created on: Jul 28, 2023
 *      Author: Terrell
 */

#ifndef INC_GPIO_I2C_SHT20_H_
#define INC_GPIO_I2C_SHT20_H_

#include "stdint.h"

enum
{
 NO_ERROR=0X00,
 PARM_ERROR=0X01,
 ACK_ERROR=0X02,
 CHECKSUM_ERROR=0X04,
 TIMOUT_ERROR=0X08,
 BUS_ERROR=0X10,
};

enum
{
   ACK_NONE,
   ACK,
   NAK,
};

extern int I2C_Master_Receive(uint8_t addr,uint8_t *buf,int len);

extern int I2C_Master_Transmit(uint8_t addr,uint8_t *data,int bytes);


#endif /* INC_GPIO_I2C_SHT20_H_ */
